package com.yeban.javase.day02.test04;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/10
 */
public class Director extends Employee{

    private int Subsidy;    // 交通补助

    public Director() {
    }

    public Director(int Subsidy) {
        this.Subsidy = Subsidy;
    }

    public Director(String name, String address, int salary, int subsidy) {
        super(name, address, salary);
        Subsidy = subsidy;
    }


    public void show() {
        super.show();
    }

    /**
     * 获取
     * @return Subsidy
     */
    public int getSubsidy() {
        return Subsidy;
    }

    /**
     * 设置
     * @param Subsidy
     */
    public void setSubsidy(int Subsidy) {
        this.Subsidy = Subsidy;
    }

    public String toString() {
        return this.getName() + " " + this.getAddress() + " " + this.getSalary() + " " + this.getSubsidy();
    }
}
